import 'package:get/get.dart';
import '../data/repository/oss_repository.dart';
import '../data/service/oss_service.dart';
import 'http_config.dart';

class BindingConfig extends Bindings {
  @override
  void dependencies() async {
    Get.lazyPut(() => HttpConfig(), fenix: true);
    Get.lazyPut(() => OssService(
        HttpConfig.dio,
        baseUrl: HttpConfig.commonBaseUrl),
        fenix: true
    );
    Get.lazyPut(() => OssRepository(), fenix: true);

  }
}
